<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
                           http://www.springframework.org/schema/beans/spring-beans.xsd
                           http://www.springframework.org/schema/context
                           http://www.springframework.org/schema/context/spring-context.xsd">

	<bean id="RmiFactory" class="br.com.news.rss.RmiFactory">
		<constructor-arg ref="usuarioService" />
		<constructor-arg ref="alternativaEnqueteService" />
		<constructor-arg ref="acessoNoticiaService" />
		<constructor-arg ref="anuncioService" />
		<constructor-arg ref="categoriaService" />
		<constructor-arg ref="categoriaUsuarioService" />
		<constructor-arg ref="comentarioService" />
		<constructor-arg ref="contatoService" />
		<constructor-arg ref="emailIndicacaoService" />
		<constructor-arg ref="enqueteService" />
		<constructor-arg ref="fonteService" />
		<constructor-arg ref="noticiaService" />
		<constructor-arg ref="respostaEnqueteService" />
		<constructor-arg ref="usuarioAndroidService" />
		<constructor-arg ref="usuarioTipoService" />
		<constructor-arg ref="auditoriaService" />
	</bean>


	<bean id="usuarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-usuario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioService" />
	</bean>

	<bean id="acessoNoticiaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-acesso-noticia-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAcessoNoticiaService" />
	</bean>

	<bean id="alternativaEnqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-alternativa-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAlternativaEnqueteService" />
	</bean>

	<bean id="anuncioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-anuncio-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAnuncioService" />
	</bean>

	<bean id="auditoriaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-auditoria-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IAuditoriaService" />
	</bean>

	<bean id="categoriaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-categoria-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.ICategoriaService" />
	</bean>

	<bean id="categoriaUsuarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-categoria-usuario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.ICategoriaUsuarioService" />
	</bean>

	<bean id="comentarioService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-comentario-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IComentarioService" />
	</bean>

	<bean id="contatoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-contato-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IContatoService" />
	</bean>

	<bean id="emailIndicacaoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-email-indicacao-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IEmailIndicacaoService" />
	</bean>

	<bean id="enqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IEnqueteService" />
	</bean>

	<bean id="fonteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-fonte-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IFonteService" />
	</bean>

	<bean id="noticiaService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl" value="rmi://localhost:6681/remote-noticia-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.INoticiaService" />
	</bean>

	<bean id="respostaEnqueteService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-resposta-enquete-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IRespostaEnqueteService" />
	</bean>

	<bean id="usuarioAndroidService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-usuario-android-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioAndroidService" />
	</bean>

	<bean id="usuarioTipoService" class="org.springframework.remoting.rmi.RmiProxyFactoryBean">
		<property name="serviceUrl"
			value="rmi://localhost:6681/remote-usuario-tipo-service" />
		<property name="serviceInterface"
			value="br.com.news.utils.service.interfaces.IUsuarioTipoService" />
	</bean>

	<bean id="mailSenderAnuncio" class="org.springframework.mail.javamail.JavaMailSenderImpl">
		<property name="javaMailProperties">
			<props>
				<prop key="mail.smtp.auth">true</prop>
				<prop key="mail.smtp.starttls.enable">true</prop>
				<prop key="mail.smtp.host">smtp.gmail.com</prop>
				<prop key="mail.smtp.port">587</prop>
			</props>
		</property>
		<property name="username" value="alexandreudicf@gmail.com" />
		<property name="password" value="francis@280901" />
	</bean>
	
	<bean id="mailSenderContato" class="org.springframework.mail.javamail.JavaMailSenderImpl">
		<property name="javaMailProperties">
			<props>
				<prop key="mail.smtp.auth">true</prop>
				<prop key="mail.smtp.starttls.enable">true</prop>
				<prop key="mail.smtp.host">smtp.gmail.com</prop>
				<prop key="mail.smtp.port">587</prop>
			</props>
		</property>
		<property name="username" value="alexandreudicf@gmail.com" />
		<property name="password" value="francis@280901" />
	</bean>
	
	<bean id="mailSenderNoticia" class="org.springframework.mail.javamail.JavaMailSenderImpl">
		<property name="javaMailProperties">
			<props>
				<prop key="mail.smtp.auth">true</prop>
				<prop key="mail.smtp.starttls.enable">true</prop>
				<prop key="mail.smtp.host">smtp.gmail.com</prop>
				<prop key="mail.smtp.port">587</prop>
			</props>
		</property>
		<property name="username" value="alexandreudicf@gmail.com" />
		<property name="password" value="francis@280901" />
	</bean>
	

	<bean id="velocityEngine"
		class="org.springframework.ui.velocity.VelocityEngineFactoryBean">
		<property name="velocityProperties">
			<value>
				resource.loader=class
				class.resource.loader.class=org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
			</value>
		</property>
	</bean>

</beans>